//
//  HomePageTest_Vc.swift
//  Pods
//
//  Created by eme on 2017/4/18.
//
//


/*
 owner:cy
 update:2017年01月17日17:43:56
 info: 测试界面
 */
import RxSwift
import UtilCore

class HomePageTest_Vc: HomePage_Vc {
    
    /****************************Storyboard UI设置区域****************************/
    
    
    /*----------------------------   自定义属性区域    ----------------------------*/
    
    var itemList : [IndexModel] = []
    /****************************Storyboard 绑定方法区域****************************/
    
    
    
    /**************************** 以下是方法区域 ****************************/
    override func viewDidLoad() {
        super.viewDidLoad()
        
    }
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.homePageItems = self.itemList
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        
    }
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        
    }
    /**
     绑定到viewmodel 设置
     */
    override func bindToViewModel(){
        
    }
    
    /**
     界面基础设置
     */
    override func setupUI() {
        
        
        /**
         *  自定义 导航栏左侧 返回按钮
         */
        self.customLeftBarButtonItem()
        ///隐藏滑动条
        self.homePage_Cv.showsVerticalScrollIndicator = false
        // 下拉刷新
        header.setRefreshingTarget(self, refreshingAction: #selector(HomePageTest_Vc.headerRefresh))
        self.homePage_Cv.mj_header = header
        
    }
    /**
     自定义leftBarButtonItem
     */
    override func customLeftBarButtonItem()  {
        self.navigationItem.leftBarButtonItem = UIBarButtonItem(image: UIImage(named: "iconfont-back"), style: .plain, target: self, action: #selector(backToView))
    }
}
